<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生录入</title>
</head>
<body>
<!-- 提示错误 ${括号里是错误信息的名称}-->
<h1 th:text="${msg}"></h1>
<!-- 	<form action="http://localhost:8080/student/add" method="post"> -->
		<form th:action="@{/student/add}" method="post">
	<fieldset>
		学生姓名：<input type="text" name="name" /> </br>
		学生学号：<input type="number" name="number" /> </br>
		性别:   <select name="sex"> 
		<option value="1">男</option>
		<option value="0">女</option>
		</select>
		<br/>
	</fieldset>
<!-- 	fielset标签，给内容加个边框 -->
	<input type="submit" value="提交" />
	</form>
</body>
</html>